var Mock = require('mockjs');

exports.response = function(req, res) {
  return Mock.mock([
    {
        "trader": "mb000020222",
        "dataDate": "all",
        "specialType": "max_profit",
        "specialText": "最大盈利的平仓记录",
        "openOrderId": "T1-20160628-110231-249-0571C",
        "closeOrderId": "T1-20160701-142702-104-2067C",
        "orderIndex": 10,
        "closeOrder": {
            "trader": "mb000020222",
            "dataDate": "2016-07-01",
            "orderId": "T1-20160701-142702-104-2067C",
            "symbol": "300104.SZ",
            "tradeType": "Sell",
            "price": 52.49,
            "quantity": 20000,
            "fee": 1438,
            "timestamp": 1467354422000,
            "tradeDate": "2016-07-01",
            "closedPositionList": [
                {
                    "trader": "mb000020222",
                    "dataDate": "2016-07-01",
                    "symbol": "300104.SZ",
                    "tradeType": "Buy",
                    "buyPrice": 48.3,
                    "sellPrice": 52.49,
                    "quantity": 20000,
                    "fee": 1797,
                    "openTime": 1467084406000,
                    "closeTime": 1467354422000,
                    "openOrderId": "T1-20160628-110231-249-0571C",
                    "closeOrderId": "T1-20160701-142702-104-2067C",
                    "tradeDate": "2016-07-01",
                    "pnl": null
                }
            ]
        }
    },
    {
        "trader": "mb000020222",
        "dataDate": "all",
        "specialType": "max_loss",
        "specialText": "最大亏损的平仓记录",
        "openOrderId": "T1-20161222-102819-431-1020C",
        "closeOrderId": "T1-20170228-144924-308-2395C",
        "orderIndex": 20,
        "closeOrder": {
            "trader": "mb000020222",
            "dataDate": "2017-02-28",
            "orderId": "T1-20170228-144924-308-2395C",
            "symbol": "300306.SZ",
            "tradeType": "Sell",
            "price": 22.31,
            "quantity": 30000,
            "fee": 918,
            "timestamp": 1488264564000,
            "tradeDate": "2017-02-28",
            "closedPositionList": [
                {
                    "trader": "mb000020222",
                    "dataDate": "2017-02-28",
                    "symbol": "300306.SZ",
                    "tradeType": "Buy",
                    "buyPrice": 23.58,
                    "sellPrice": 22.31,
                    "quantity": 10000,
                    "fee": 395,
                    "openTime": 1482373885000,
                    "closeTime": 1488264564000,
                    "openOrderId": "T1-20161222-102819-431-1020C",
                    "closeOrderId": "T1-20170228-144924-308-2395C",
                    "tradeDate": "2017-02-28",
                    "pnl": null
                },
                {
                    "trader": "mb000020222",
                    "dataDate": "2017-02-28",
                    "symbol": "300306.SZ",
                    "tradeType": "Buy",
                    "buyPrice": 23.43,
                    "sellPrice": 22.31,
                    "quantity": 10000,
                    "fee": 394,
                    "openTime": 1482902955000,
                    "closeTime": 1488264564000,
                    "openOrderId": "T1-20161228-132914-820-1990C",
                    "closeOrderId": "T1-20170228-144924-308-2395C",
                    "tradeDate": "2017-02-28",
                    "pnl": null
                },
                {
                    "trader": "mb000020222",
                    "dataDate": "2017-02-28",
                    "symbol": "300306.SZ",
                    "tradeType": "Buy",
                    "buyPrice": 20.74,
                    "sellPrice": 22.31,
                    "quantity": 10000,
                    "fee": 383.5,
                    "openTime": 1487832594000,
                    "closeTime": 1488264564000,
                    "openOrderId": "T1-20170223-144954-243-2410C",
                    "closeOrderId": "T1-20170228-144924-308-2395C",
                    "tradeDate": "2017-02-28",
                    "pnl": null
                }
            ]
        }
    },
    {
        "trader": "mb000020222",
        "dataDate": "all",
        "specialType": "max_potential_risk",
        "specialText": "最大潜在风险的平仓记录",
        "openOrderId": "T1-20161222-102819-431-1020C",
        "closeOrderId": "T1-20170228-144924-308-2395C",
        "orderIndex": 30,
        "closeOrder": {
            "trader": "mb000020222",
            "dataDate": "2017-02-28",
            "orderId": "T1-20170228-144924-308-2395C",
            "symbol": "300306.SZ",
            "tradeType": "Sell",
            "price": 22.31,
            "quantity": 30000,
            "fee": 918,
            "timestamp": 1488264564000,
            "tradeDate": "2017-02-28",
            "closedPositionList": [
                {
                    "trader": "mb000020222",
                    "dataDate": "2017-02-28",
                    "symbol": "300306.SZ",
                    "tradeType": "Buy",
                    "buyPrice": 23.58,
                    "sellPrice": 22.31,
                    "quantity": 10000,
                    "fee": 395,
                    "openTime": 1482373885000,
                    "closeTime": 1488264564000,
                    "openOrderId": "T1-20161222-102819-431-1020C",
                    "closeOrderId": "T1-20170228-144924-308-2395C",
                    "tradeDate": "2017-02-28",
                    "pnl": null
                },
                {
                    "trader": "mb000020222",
                    "dataDate": "2017-02-28",
                    "symbol": "300306.SZ",
                    "tradeType": "Buy",
                    "buyPrice": 23.43,
                    "sellPrice": 22.31,
                    "quantity": 10000,
                    "fee": 394,
                    "openTime": 1482902955000,
                    "closeTime": 1488264564000,
                    "openOrderId": "T1-20161228-132914-820-1990C",
                    "closeOrderId": "T1-20170228-144924-308-2395C",
                    "tradeDate": "2017-02-28",
                    "pnl": null
                },
                {
                    "trader": "mb000020222",
                    "dataDate": "2017-02-28",
                    "symbol": "300306.SZ",
                    "tradeType": "Buy",
                    "buyPrice": 20.74,
                    "sellPrice": 22.31,
                    "quantity": 10000,
                    "fee": 383.5,
                    "openTime": 1487832594000,
                    "closeTime": 1488264564000,
                    "openOrderId": "T1-20170223-144954-243-2410C",
                    "closeOrderId": "T1-20170228-144924-308-2395C",
                    "tradeDate": "2017-02-28",
                    "pnl": null
                }
            ]
        }
    },
    {
        "trader": "mb000020222",
        "dataDate": "all",
        "specialType": "max_risk_over_pnl",
        "specialText": "最大风险收益比的平仓记录",
        "openOrderId": "T1-20160601-144416-121-1850C",
        "closeOrderId": "T1-20160704-130938-157-0546C",
        "orderIndex": 40,
        "closeOrder": {
            "trader": "mb000020222",
            "dataDate": "2016-07-04",
            "orderId": "T1-20160704-130938-157-0546C",
            "symbol": "600030.SH",
            "tradeType": "Sell",
            "price": 16.69,
            "quantity": 15000,
            "fee": 347,
            "timestamp": 1467608980000,
            "tradeDate": "2016-07-04",
            "closedPositionList": [
                {
                    "trader": "mb000020222",
                    "dataDate": "2016-07-04",
                    "symbol": "600030.SH",
                    "tradeType": "Buy",
                    "buyPrice": 16.62,
                    "sellPrice": 16.69,
                    "quantity": 10000,
                    "fee": 295.3333,
                    "openTime": 1464763681000,
                    "closeTime": 1467608980000,
                    "openOrderId": "T1-20160601-144416-121-1850C",
                    "closeOrderId": "T1-20160704-130938-157-0546C",
                    "tradeDate": "2016-07-04",
                    "pnl": null
                },
                {
                    "trader": "mb000020222",
                    "dataDate": "2016-07-04",
                    "symbol": "600030.SH",
                    "tradeType": "Buy",
                    "buyPrice": 16.29,
                    "sellPrice": 16.69,
                    "quantity": 5000,
                    "fee": 147.6667,
                    "openTime": 1467166495000,
                    "closeTime": 1467608980000,
                    "openOrderId": "T1-20160629-101402-140-2283C",
                    "closeOrderId": "T1-20160704-130938-157-0546C",
                    "tradeDate": "2016-07-04",
                    "pnl": null
                }
            ]
        }
    }
])
}
